package com.engine.core.util;

public class Result<T>{
    private T t;
    private Exception exp;
    private boolean success;

    public Result(Exception exp) {
        this.exp = exp;
        this.success = false;
    }



    public Result(T t) {
        this.t = t;
        this.success=true;
    }

    public T get() {
        return t;
    }


    public Exception getExp() {
        return exp;
    }

    public boolean success() {
        return success;
    }
}
